
<?php
if (! $this->site_id) {
	?>

<div class="site-left"><div style="height:30px;"></div>
<?php
foreach ( $this->categoryFirst as $key=>$category ) {
?>
<div class="box4">
<div class="title"><b><?=$category['category_name']?></b>(<?=$category['total']?>)</div>
<div class="content">
     <?php
	foreach ( $category['cate'] as $item ) {
		?>
      <div><a
		href="<?=$this->url ( array ( 'site_id' => $item ['site_id'] ), 'site_host' )?>"><?=$item ['site_name']?></a></div>
     <?
	}
	?>  
</div>
</div>
<!-- end box4 -->
<?
}
?>

</div>
<!-- end site-left -->
<div class="site-right">
<div class="box1">
<div class="title">关于我们...</div>
<div class="content">
<dl>
	枫桥居小站，兴趣爱好交流平台。这里能找到属于你的圈子！发现，分享，交流。
</dl>
</div>
</div>
<!-- end box1 --></div>
<!-- end site-right -->
<?
}
else {
	?>
<?=$this->render ( 'public/header.phtml' )?>  
<div class="site-left">

<?php
	foreach ( $this->list as $val ) 
	{
		$tpl = "index/" . $val ['type'] . ".phtml";
		$this->data = $val ['data'];
		$this->modelName = $val ['modelName'];
		echo $this->render ( $tpl );
	}
	?>

</div>
<!-- end site-left -->
<div class="site-right">
<div class="box1">
<div class="title">小站介绍...</div>
<div class="content">
<dl>
     <?=$this->siteInfo ['site_intro']?>
     </dl>
</div>
</div>
<!-- end box1 --></div>
<!-- end site-right -->
<?
}
?>